<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<!-- 设置元素的属性 -->
		<div id="app">
			<img :src="imgSrc" :title="imgTitle"/>
			<img :class="{active:isActive}" />
		</div>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
		<script>
			var app = new Vue({
				el:"#app",
				data:{
					imgSrc:"image/1%20.jpg",
					imgTitle:"动漫",
					isActive:false
				}
			})
		</script>
	</body>
</html>
